package com.ruoyi.car.mapper.parts;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.car.pojo.TbPartBatteryPack;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbPartBatteryPackMapper extends BaseMapper<TbPartBatteryPack> {

    List<TbPartBatteryPack> findAll(TbPartBatteryPack tbPartBatteryPack);

    /**
     * 查询
     *
     * @param id
     * @return
     */
    public TbPartBatteryPack selectTbPartBatteryPackById(Long id);

    /**
     * 新增
     *
     * @param tbPartBatteryPack
     * @return 结果
     */
    public int insertTbPartBatteryPack(TbPartBatteryPack tbPartBatteryPack);

    /**
     * 修改
     *
     * @param tbPartBatteryPack
     * @return 结果
     */
    public int updateTbPartBatteryPack(TbPartBatteryPack tbPartBatteryPack);

    /**
     * 删除
     *
     * @param id
     * @return 结果
     */
    public int deleteTbPartBatteryPackById(Long id);

    /**
     * 批量删除
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTbPartBatteryPackByIds(String[] ids);
}
